<!doctype html>
	<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    <head>
        <meta charset="<?php bloginfo( 'charset' ); ?>" />
        <title><?php wp_title(); ?></title>
        <link rel="profile" href="http://gmpg.org/xfn/11" />
		<link rel="stylesheet" href="<?php echo get_stylesheet_uri(); ?>" type="text/css" media="screen" />
		<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
        <?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?>
		<?php wp_head(); ?>

    </head>
<body <?php body_class(); ?>>
	<div id="header">
			<div class="logo">
				<?php if (wpboxes_options('wpboxes_imagelogo') == '1') { ?>
					<a href="<?php echo site_url(); ?>" title="<?php echo get_bloginfo('name'); ?>"><img src="<?php echo wpboxes_options('wpboxes_logo_uploader'); ?>" alt="<?php echo get_bloginfo('name'); ?>" height="120" width="400" /></a>
				<?php } else { ?>
					<h1><a href="<?php echo site_url(); ?>" title="<?php echo get_bloginfo('name'); ?>" ><?php echo get_bloginfo('name'); ?></a></h1>
					<p><?php echo get_bloginfo( 'description' ); ?></p>
				<?php } ?>
			</div>
			
			
			<?php if ( has_nav_menu( 'topmenu' ) ) { if (function_exists('wpboxes_pagemenu')) { wpboxes_pagemenu(); }
				} else { ?>
					<div class="pagemenu">
						<ul id="menu-pages-menu" class="menu"><?php wp_list_pages('number=5&title_li=');?></ul>
					</div>
				<?php } ?>
		<div class="clear"></div>
	</div>
		<div class="clear"></div>
		
	<div class="container">
		
<?php if ( has_nav_menu( 'catmenu' ) ) { if (function_exists('wpboxes_catmenu')) { wpboxes_catmenu(); }
	} else {?> <div class="catmenu">
			<ul id="menu-category-menu" class="menu"><?php wp_list_categories('number=8&title_li=');?></ul>
			</div> <?php } ?>
			
		<div class="clear"></div>